package com.heima.article.job;


import com.heima.article.service.HotArticlesService;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author feng js
 */
@Component
public class ComputeHotArticleJob {
    @Autowired
    private HotArticlesService hotArticlesService;


    @XxlJob("computeHotArticle")
    public ReturnT<String> autoScanJob(String parm) {

        hotArticlesService.computeHotArticle();

        return ReturnT.SUCCESS;
    }

}
